package com.lichuang.dedao.curriculum.service.impl;

import com.lichuang.dedao.curriculum.entity.CurriculumChapter;
import com.lichuang.dedao.curriculum.mapper.CurriculumChapterMapper;
import com.lichuang.dedao.curriculum.service.ICurriculumChapterService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author xiaosong
 * @since 2019-07-18
 */
@Service
public class CurriculumChapterServiceImpl extends ServiceImpl<CurriculumChapterMapper, CurriculumChapter> implements ICurriculumChapterService {

    @Autowired
    private CurriculumChapterMapper curriculumChapterMapper;

    @Override
    public List<CurriculumChapter> getChapterByCurriculumId(Integer curriculumId) {
        return curriculumChapterMapper.getChapterByCurriculumId(curriculumId);
    }
}
